home *** CD-ROM | disk | FTP | other *** search
- Path: news.cern.ch!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: What is wrong with this loop?
- Date: 21 Apr 96 02:50:07 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.830055007@news.cern.ch>
- References: <4l86la$1t9@uwm.edu> <4l8apa$kv8@spanky.pls.ov.com> <4lb6sj$c5c@abel.cc.sunysb.edu>
- NNTP-Posting-Host: ues5.cern.ch
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- Content-Transfer-Encoding: 7bit
- X-Newsreader: NN version 6.5.0 #18 (NOV)
-
- In <4lb6sj$c5c@abel.cc.sunysb.edu> dkat@psych1.psy.sunysb.edu (DK) writes:
-
-
- >/* I assume you mean
- > while (cd != 'm' || cd != 'f' || cd != 'o')
- >/*try using gets(line) - it is always safer*/
-
- Don't be silly, gets is _never_ safe. Have a look at the FAQ to see why.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-